import useHttp from './useHttp'

export const reqWeatherApi = (city) => {
  return useHttp({
    url: `/weather/v1?city=${encodeURIComponent(city)}`,
    method: 'GET',
  })
}
